﻿/**
 * @author sminutoli
 * version 1.0
 */

import com.dinmax.flash.utilities.movieclip.MovieClipUtils
import com.dinmax.flash.draw.cabeza.ControlCabeza
import com.dinmax.flash.draw.cabeza.ScrollCabeza
import com.dinmax.flash.draw.cabeza.ButtonCabeza

class com.dinmax.dinmaxWeb.WINDOWNoticiaBridge
extends com.dinmax.flash.draw.cabeza.WindowCabeza
implements com.dinmax.flash.draw.cabeza.SelectedListener {
	
	private static var LINK_ID:String = "Noticia";
			
	public function drawItem():MovieClip {
		var clip:MovieClip = super.drawItem(WINDOWNoticiaBridge.LINK_ID);
		this.getScrollV().setStep(clip._height);
		
		return clip;
	};
	
	private function initScrollV():Void {
		super.initScrollV();
		if(this.getScrollV().getState() == ScrollCabeza.ENABLED){
			this.getScrollV().setScrollPos(0);
		};
		this.getScrollV().setMouseWheel(true, this);
	};
		
}